<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <div class="movie-card">
    <div class="poster">
      <img src="poster.jpg" alt="电影海报" />
    </div>
    <div class="info">
      <h3 class="title">最后的生还者 第一季</h3>
      <div class="rating">⭐️ 4.5</div>
      <div class="watch-summary">
        <span>总观影次数: 3</span>
      </div>
      <div class="actions">
        <button class="favorite-button">⭐ 收藏</button>
        <button class="watch-later-button">📅 待观看</button>
        <button class="details-button">🔍 查看详情</button>
      </div>
      <div class="details-popup">
        <ul class="watch-records">
          <li>第1次: 2023-04-02 | 客厅 | 电视</li>
          <li>第2次: 2023-05-15 | 卧室 | 手机</li>
          <li>第3次: 2023-06-01 | 影院 | IMAX</li>
        </ul>
      </div>
    </div>
  </div>

</body>
<style>
  /* 卡片整体样式 */
  .movie-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 280px;
    font-family: 'Arial', sans-serif;
    transition: transform 0.2s;
  }

  .movie-card:hover {
    transform: translateY(-5px);
  }

  /* 海报区域 */
  .poster img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* 信息区域 */
  .info {
    padding: 15px;
    text-align: center;
  }

  .title {
    font-size: 18px;
    font-weight: bold;
    color: #333333;
    margin: 0;
  }

  .rating {
    font-size: 14px;
    color: #f39c12;
    margin: 5px 0;
  }

  .watch-summary {
    font-size: 12px;
    color: #666666;
    margin-bottom: 10px;
  }

  /* 功能按钮 */
  .actions {
    display: flex;
    justify-content: center;
    gap: 10px;
  }

  button {
    background: #f0f0f0;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.2s;
  }

  button:hover {
    background: #e0e0e0;
  }

  .favorite-button {
    color: #ffcc00;
  }

  .watch-later-button {
    color: #ff9966;
  }

  .details-button {
    color: #007bff;
  }

  /* 详细信息弹窗 */
  .details-popup {
    display: none;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 10px;
    margin-top: 10px;
    font-size: 12px;
    color: #333;
  }

  .details-popup ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .details-popup li {
    margin-bottom: 5px;
  }

  /* 显示详细信息 */
  .movie-card:hover .details-popup {
    display: block;
  }
</style>

</html>